displaying heading from object above

I've seen how to grab the heading for an objects parent and grandparent, but how can I grab the heading of the object above an object?

For example, 4.2.1 is my requirement. 4.2 is the heading "Search". I want a layout dxl that will display "Search" next to 4.2.1 and any other requirement that is below 4.2.

Can anyone help?

Thanks
moheganburnerjr - Thu Mar 10 09:29:55 EST 2011

Re: displaying heading from object above
PDU - Thu Mar 10 10:56:19 EST 2011

Hi,

4.2 is the parent of 4.2.1., and 4.2.2 and 4.2.3 ....
So as you write that you know how to grab the heading for an objects parent I don't understand your problem.

Pierre

Re: displaying heading from object above
moheganburnerjr - Thu Mar 10 12:41:56 EST 2011

I always associate the word "parent" with the linked object, not the object above.

Anyway, I've since figured it out.

Re: displaying heading from object above
llandale - Thu Mar 10 15:25:52 EST 2011

There is a "Object parent(Object)" perm that gets the hierarchy parent of an object. Your layout may look like this:

if (obj is not a requirement) then halt // display nothing
 
Object oParent = parent(obj)
string HeadParent = probeAttr_(oParent, "Object Heading")
if (!null HeadParent) displayRich (number(oParent) " \\b " HeadParent "\\b0 :")  // Para Number, Bold on/off
 
now display what you want from obj.

 

  • Louie

 

Re: displaying heading from object above
moheganburnerjr - Fri Mar 11 16:16:05 EST 2011

Thanks Louie. I'll play around with that.